home *** CD-ROM | disk | FTP | other *** search
- global pict, precast, moviepos, foreframe, movieshow, g_pictpath, movieprepos, qtframelist, pictname, g_pause, womannum
-
- on importpict
- global pict, precast, moviepos, g_pictpath, pictname, g_image, lcastname, pictlib
- set umember to the member of sprite 22
- set the member of sprite 22 to member (getAt(qtframelist, value(moviepos)) + value(pictname)) of castLib lcastname
- unloadMember(member umember)
- updateStage()
- end
-
- on judgeframe
- if pict >= (getAt(qtframelist, moviepos + 1) - getAt(qtframelist, moviepos)) then
- set pict to 0
- if moviepos = 4 then
- set moviepos to 1
- else
- set moviepos to moviepos + 1
- end if
- pictcast()
- set movieprepos to moviepos
- set g_pictpath to the pathName & "PICTS\" & womannum & "\0" & moviepos & "\"
- end if
- importpict()
- end
-
- on pictcast
- global pict, pictname
- set a to pict / 100
- set b to (pict - (100 * a)) / 10
- set c to pict - (100 * a) - (10 * b)
- set pictname to string(a) & string(b) & string(c)
- end
-
- on checkkey0
- global scastname, movieshow, delaytime, qtframelist
- dontPassEvent()
- if the key = TAB then
- set movieshow to 1
- dontPassEvent()
- set the keyDownScript to "checkkeytab"
- go("move")
- set the visible of sprite 23 to 1
- set the visible of sprite 29 to 1
- set the visible of sprite 24 to 1
- set the member of sprite 24 to member (pict + getAt(qtframelist, moviepos)) of castLib scastname
- updateStage()
- end if
- if the key = "1" then
- set delaytime to 120
- end if
- if the key = "2" then
- set delaytime to 60
- end if
- if the key = "3" then
- set delaytime to 30
- end if
- if the key = RETURN then
- if objectp(g_image) then
- g_image(mdispose)
- end if
- set the keyDownScript to EMPTY
- cursor(-1)
- go(1, womannum)
- end if
- if the keyCode = 125 then
- go("pa")
- set g_pause to 1
- end if
- if the keyCode = 126 then
- set g_pause to 0
- set the visible of sprite 23 to 0
- set the visible of sprite 24 to 0
- set the visible of sprite 29 to 0
- go("from")
- end if
- if (the keyCode = 76) or (the keyCode = 36) then
- go(1, womannum)
- else
- if the keyCode = 115 then
- if objectp(g_image) then
- g_image(mdispose)
- end if
- go(1, "@\..\MAINMENU")
- else
- if the commandDown and (the keyCode = 12) then
- cursor(-1)
- if objectp(g_image) then
- g_image(mdispose)
- end if
- dontPassEvent()
- go(1, "@\..\QUIT")
- end if
- end if
- end if
- end
-
- on wait delaytime
- if the timer < delaytime then
- go(the frame)
- end if
- end
-